package stool.visitor;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/16
 */
public class Main {

    public static void main(String[] args) {

        ObjectStructure o = new ObjectStructure();
        o.attach(new Man());
        o.attach(new Woman());

        Success success = new Success();
        o.find(success);

        Failed failed = new Failed();
        o.find(failed);
    }
}
